]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
WindowManager: clean up scale_y when overwrite the map animation
authorGiovanni Campagna <gcampagna@src.gnome.org>
Sun, 16 Dec 2012 19:02:17 +0000 (20:02 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Sun, 16 Dec 2012 19:45:43 +0000 (20:45 +0100)
If we overwrite a map animation (for example because the actor is now destroyed),
we need to complete it first, otherwise it starts off from a random
middle point. This is the same treatment opacity gets for normal windows.

https://bugzilla.gnome.org/show_bug.cgi?id=690241

js/ui/windowManager.js

index f5966282c28b781fb91052514522b61caff8d48e..372d9a30370db10d44295c06858cc9bb54961df9 100644 (file)
@@ -420,6 +420,7 @@ const WindowManager = new Lang.Class({
         if (this._removeEffect(this._mapping, actor)) {
             Tweener.removeTweens(actor);
             actor.opacity = 255;
+            actor.scale_y = 1;
             shellwm.completed_map(actor);
         }
     },